package com.itcast.service.impl;

import java.util.List;

import com.itcast.dao.CustomNameDao;
import com.itcast.domain.CustomName;
import com.itcast.service.CustomNameService;

public class CustomNameServiceImpl implements CustomNameService{
	
	private CustomNameDao customNameDao;

	public CustomNameDao getCustomNameDao() {
		return customNameDao;
	}

	public void setCustomNameDao(CustomNameDao customNameDao) {
		this.customNameDao = customNameDao;
	}

	@Override
	public void save(CustomName customName) {
		this.customNameDao.save(customName);
	}

	@Override
	public void update(CustomName customName) {
		this.customNameDao.update(customName);
	}

	@Override
	public void delete(CustomName customName) {
		this.customNameDao.delete(customName);
	}

	@Override
	public List<String> findById(Integer db_id) {
		return this.customNameDao.findById(db_id);
	}

	@Override
	public String findByIdAndNum(Integer db_id, Integer num) {
		return this.customNameDao.findByIdAndNum(db_id, num);
	}

}
